libxl: Do not trust backend for cdrom insert
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 29 Apr 2016 18:13:17 +0000 (19:13 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 2 Jun 2016 14:53:29 +0000 (15:53 +0100)
commit3cc74772fdce99e2ad891fc280d5cfae068108f8
treebcb7bb51f0298539eec6e22dc3a50e0ad341d6ca
parent29225b2973c3c5b7ffffc2dc8a972337a37b3283
libxl: Do not trust backend for cdrom insert

Use the /libxl path where appropriate.  Rename `path' variable to
`be_path' to make sure we caught all the occurrences.

Specifically, when checking that the device still exists, check the
`frontend' value in /libxl, rather than anything in the backend
directory.

This is part of XSA-178.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.c